import { extendRequest } from '@/utils/request';

export async function getMaintenanceList(params) {
  return extendRequest('/car/maintenance/list', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function addMaintenanceList(params) {
  return extendRequest('/car/maintenance/add', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function updateMaintenanceList(params) {
  return extendRequest('/car/maintenance/update', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function deleteMaintenanceList(params) {
  return extendRequest('/car/maintenance/delete', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function queryList(params) {
  return extendRequest('/car/list', {
    method: 'POST',
    data: { ...params },
  });
}
